<em>import React from 'react'</em>
<em>import { <q>useLocation</q> } from 'react-router-dom'</em>

<em>const</em> <b>useQuery</b> = ( ) => <i>new URLSearchParams</i>(<q>useLocation( )</q>.<u>search</u>)

<em>const</em> <u>Component</u> = ( ) => {
	
	<em>const</em> <s>query</s> = <b>useQuery( )</b>
	
	<em>const id</em> = <s>query</s>.<q>get</q>(<em>'id'</em>) 		<em>// </em> <u>?id=10</u>
	
	<em>return null</em>
}